<?php


class template_detail extends theme
{


	
	protected function head()
	{
	
	?>
	<link type="text/css" rel="stylesheet" href="templates/content/css/detail.css">
	<?php
	}


	public function center()
	{
	$content = $this->get('content');
	?>
		<h2 class="content-title"><?php echo $content->title; ?></h2>
		<div class="content-body"><?php echo $content->body; ?></div>
		<p class="content-info"><?php echo '发表时间: '.date('Y-m-d H:i', $content->created_time).' &nbsp; 访问量:'.$content->hits.' &nbsp; 作者: '.$content->created_by_name; ?></p>
	<?php
	}

}
?>